﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ComputerizedRehabForms
{
    public partial class BLBResultsForm : Form
    {
        public BLBResultsForm()
        {
            InitializeComponent();
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            Graphics g;

            g = e.Graphics;

            Pen myPen = new Pen(Color.Gray);
            myPen.Width = 10;
            g.DrawLine(myPen, 300, this.Height / 3, this.Width - 300, this.Height / 3);
            //g.DrawRectangle(myPen, 200, 250, 600, 20);

            myPen.Color = System.Drawing.Color.Green;
            myPen.Width = 3;
            g.DrawLine(myPen, this.Width / 2, this.Height / 3 - 100, this.Width / 2, this.Height / 3 + 100);
            

            myPen.Color = System.Drawing.Color.Red;
            g.DrawLine(myPen, BLBTestForm.mouse_x - 20, BLBTestForm.mouse_y * 2 / 3 - 20, BLBTestForm.mouse_x + 20, BLBTestForm.mouse_y * 2 / 3 + 20);
            g.DrawLine(myPen, BLBTestForm.mouse_x - 20, BLBTestForm.mouse_y * 2 / 3 + 20, BLBTestForm.mouse_x + 20, BLBTestForm.mouse_y * 2 / 3 - 20);

        }

        private void BLBResultsForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void no_save_button_Click(object sender, EventArgs e)
        {
            DataManager.showExit();
        }
    }
}
